package io.mft.as.ar.gateway.util;

import io.mft.as.ar.gateway.client.NetAddress;
import io.mft.as.ar.gateway.constants.GatewayConstants;

public class HttpUtil
{

	/**
	 * 返回成功状态码
	 */
	private final static int SC_OK = 200;


	public static boolean connectServer(NetAddress netAddress)
	{

		if(GatewayConstants.SCAN_SERVERTYPE_SOCKET.equals(netAddress.getServerType()))
		{
			return SocketHelper.connectServer(netAddress.getIP(), netAddress.getPort());
		}
		else
		{
			return false;
		}
	}

	
}
